/**
 * This file is part of the CAKIS project.
 * 
 * Copyright (c) 2009-2010 - Florian Arndt, Christian Kerl
 * 
 * @license GNU Lesser General Public License v3 <http://www.opensource.org/licenses/lgpl-3.0.html>
 * @since   01.03.2010
 * @version SVN: $Id: StockItemRepository.java 159 2010-05-19 15:27:33Z christian-kerl@web.de $
 */

package org.cakis.server.model.repository;

import java.util.List;

import javax.ejb.Local;

import org.cakis.server.model.StockItem;

/**
 * {@link Repository} managing {@link StockItem} entities.
 * 
 * @author Christian Kerl
 */
@Local
public interface StockItemRepository extends Repository<StockItem> {

    List<StockItem> findByProduct(Long productId, Range limit);

    List<StockItem> findByProductOrProductType(Long baseProductId);
}
